﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    @V5.Html.Partial("User/_ChkUser")
    <title>报表中心</title>
    <meta name="Keywords" content="网络购物，网上超市，网上购物，购物，网上商店，购物商城,购物网，超市网,世博会门票购买" />
    <meta name="Description" content="用鼠标逛超市，不用排队，方便实惠送上门，网上购物新生活。" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="/@V5.Config.TemplatePath/css/index.css"/>
    <link type="text/css" rel="stylesheet" href="/@V5.Config.TemplatePath/css/product_detail.css"/> 
    <script src="/@V5.Config.TemplatePath/javascript/jquery.min.js" type="text/javascript"></script>
    <script src="/@V5.Config.TemplatePath/javascript/Comon.js" type="text/javascript" charset="UTF-8"></script> 
    <script src="/@V5.Config.TemplatePath/javascript/loading/loading_source.js" type="text/javascript" charset="UTF-8"></script>
    @V5.Html.Partial("includes/tView")
</head>
<body>
    @*@V5.Html.Partial("includes/header")*@
    @{
        var user = (V5_Model.ModelGZUser)Session["isLogin"];  
        }
    <div class="wrap">
        @V5.Html.Partial("User/_Menu")
        <div class="right_content">
            <div class="crumb">
                <a class="home" href="/index.aspx" target="_blank">首页</a> > <span>个人中心</span> &nbsp;&nbsp;&nbsp;<a href="/loginOut.aspx" style="background:none;color:Red;font-weight:bold">退出登录</a></div>
           @* <div class="personal_center">
                <div class="fleft">
                    <img src="images/tx.jpg" width="120" height="120" /></div>
                <div class="right">
                    <dl class="user_infos">
                        <dt><strong>您好，@user.CustomName</strong></dt>
                        <dd>
                            <li>订单数（<strong>0</strong>）</li>
                            <li>等待收货订单（<strong>0</strong>）</li>
                            <li>等待评价商品（<strong>0</strong>）</li>
                            <li>当前积分：<strong>0</strong>&nbsp;分</li>
                            <li>账户余额：<strong>￥0</strong></li>
                            <li>冻结金额：<strong>￥0</strong></li>
                        </dd>
                    </dl>
                </div>
                <div class="clearfix">
                </div>
            </div>*@


            @{
                int p = (Request["p"] + string.Empty) == "" ? 1 : int.Parse(Request["p"] + string.Empty);
                int index = 1;
                if (p < 1)
                {
                    p = 1;
                }

                if (p > 1)
                {
                    index = ((p - 1) * 10) + 1;
                }

                System.Data.DataTable dt = new V5_EShop._Class.BLL.GZ.BLLGZProductOrder().GetList(" CustomID = '" + user.ID + "' order by CreateDatetime desc").Tables[0];
                System.Data.DataTable dtp = new V5_EShop._Class.BLL.GZ.BLLGZProductOrder().GetListByPage(" CustomID = '" + user.ID + "'", " CreateDatetime desc", index, p * 10).Tables[0];

              
                }

            <div class="personal_box">
                <h3> 报表中心</h3>
                <div class="personal_detail">
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="data">
                        <thead>
                            <tr>
                                <th>
                                    订单号
                                </th>
                                <th>
                                    创建时间
                                </th> 
                                 <th>
                                    是否积分兑换
                                </th>
                                <th>
                                    当前状态
                                </th>  
                            </tr>
                        </thead>

                        @if (dtp != null && dtp.Rows.Count > 0)
                        {
                            foreach (System.Data.DataRow item in dtp.Rows)
                            {
                            <tr id="parent_@(item["ID"])">
                                <td>
                                    @item["BillNo"]
                                </td>
                                <td>
                                    @item["CreateDatetime"]
                                </td> 
                                <td >
                                   @Html.Raw((item["paystatus"] + string.Empty) == "0" ? "否" : "<font style='color:red'>是</font>")
                                </td>
                                <td>
                                    @((item["Status"] + string.Empty).Trim() == "" ? "正常" : "锁定") 
                                </td> 
                            </tr>  
                            }
                        }
                    </table>
                </div>
                <div class="pagelist">
                
                @if (dt != null && dt.Rows.Count > 0)
                {
                    int page = int.Parse(Math.Ceiling((decimal.Parse(dt.Rows.Count.ToString()) / 10)).ToString("0"));

                    for (int q = 1; q <= page; q++)
                    {
                        if (q == p)
                        {
                            <span class="page_cur">@q</span>
                        }
                        else
                        {
                            <a href="/index.aspx?t=user/mybill&p=@q">@q</a>
                        }
                    
                    }
                    
                } 
                </div>

            </div>
        </div>
        <div class="clearfix">
        </div>
        <div class="mt10">
        </div>
    </div>
   @* @V5.Html.Partial("includes/Footer")*@
    <!--回顶部 -->
</body>
</html>

 